<template>
  <div>
    <bread-crumb name1="订单管理" name2="订单列表"></bread-crumb>
    <el-card>
      <h1>物流跟踪信息</h1>
      <el-timeline :reverse="reverse">
        <el-timeline-item
          v-for="(activity, index) in activities"
          :key="index"
          :timestamp="activity.time"
        >
          {{ activity.context }}
        </el-timeline-item>
      </el-timeline>
    </el-card>
  </div>
</template>

<script>
import BreadCrumb from "@/components/common/breadcrumb/BreadCrumb";
import { order_wuliu_info_req } from "@/api/order.js";
export default {
  data() {
    return {
      reverse: true,
      activities: [],
    };
  },
  components: {
    BreadCrumb,
  },
  mounted() {
    this.getOrderwuliu();
  },
  methods: {
    async getOrderwuliu() {
      const result = await order_wuliu_info_req();
      console.log(result);
      if (result.meta.status !== 200) {
        return this.$message.error("物流信息获取失败");
      }
      this.activities = result.data;
    },
  },
};
</script>

<style lang="scss" scoped>
</style>